package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * IamUser
 * 
 * @author PG(Auto Generator)
 * @version V1.0
 */
public class IamUser extends IamUserKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /** 用户类型 [1,0] */
    protected String userType;
    /** 用户代码 [50,0] Not NULL */
    protected String userCode;
    /** 用户密码 [64,0] Not NULL */
    protected String password;
    /** 用户名称 [50,0] Not NULL */
    protected String userName;
    /** 头像 [2000,0] */
    protected String avatar;
    /** 邮箱 [45,0] */
    protected String email;
    /** 手机 [45,0] */
    protected String mobile;
    /** 生日 [19,0] */
    protected Date birthday;
    /** 性别 [1,0] */
    protected String sex;
    /** 身份证号 [25,0] */
    protected String idNumber;
    /** 机构ID [32,0] Not NULL */
    protected String organId;
    /** 机构名称 [50,0] Not NULL */
    protected String organName;
    /** 租户代码 [50,0] Not NULL */
    protected String tenantCode;
    /** 租户名称 [50,0] Not NULL */
    protected String tenantName;
    /** 状态 [1,0] */
    protected String state;
    /** 创建人 [20,0] */
    protected String createUser;
    /** 修改人 [20,0] */
    protected String updateUser;
    /** 创建时间 [19,0] */
    protected Date createTime;
    /** 修改时间 [19,0] */
    protected Date updateTime;
    /** 逻辑删除 [1,0] Not NULL */
    protected String isDeleted;

    public IamUser() {
        super();
    }

    public IamUserKey primaryKey() {
        return new IamUserKey(id);
    }

    /** 取值 <== 用户类型 [1,0] */
    public String getUserType() {
        return userType;
    }

    /** 赋值 ==> 用户类型 [1,0] */
    public void setUserType(String userType) {
        this.userType = userType == null ? null : userType.trim();
    }

    /** 取值 <== 用户代码 [50,0], Not NULL */
    public String getUserCode() {
        return userCode;
    }

    /** 赋值 ==> 用户代码 [50,0], Not NULL */
    public void setUserCode(String userCode) {
        this.userCode = userCode == null ? null : userCode.trim();
    }

    /** 取值 <== 用户密码 [64,0], Not NULL */
    public String getPassword() {
        return password;
    }

    /** 赋值 ==> 用户密码 [64,0], Not NULL */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /** 取值 <== 用户名称 [50,0], Not NULL */
    public String getUserName() {
        return userName;
    }

    /** 赋值 ==> 用户名称 [50,0], Not NULL */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /** 取值 <== 头像 [2000,0] */
    public String getAvatar() {
        return avatar;
    }

    /** 赋值 ==> 头像 [2000,0] */
    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    /** 取值 <== 邮箱 [45,0] */
    public String getEmail() {
        return email;
    }

    /** 赋值 ==> 邮箱 [45,0] */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /** 取值 <== 手机 [45,0] */
    public String getMobile() {
        return mobile;
    }

    /** 赋值 ==> 手机 [45,0] */
    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    /** 取值 <== 生日 [19,0] */
    public Date getBirthday() {
        return birthday;
    }

    /** 赋值 ==> 生日 [19,0] */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /** 取值 <== 性别 [1,0] */
    public String getSex() {
        return sex;
    }

    /** 赋值 ==> 性别 [1,0] */
    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    /** 取值 <== 身份证号 [25,0] */
    public String getIdNumber() {
        return idNumber;
    }

    /** 赋值 ==> 身份证号 [25,0] */
    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber == null ? null : idNumber.trim();
    }

    /** 取值 <== 机构ID [32,0], Not NULL */
    public String getOrganId() {
        return organId;
    }

    /** 赋值 ==> 机构ID [32,0], Not NULL */
    public void setOrganId(String organId) {
        this.organId = organId == null ? null : organId.trim();
    }

    /** 取值 <== 机构名称 [50,0], Not NULL */
    public String getOrganName() {
        return organName;
    }

    /** 赋值 ==> 机构名称 [50,0], Not NULL */
    public void setOrganName(String organName) {
        this.organName = organName == null ? null : organName.trim();
    }

    /** 取值 <== 租户代码 [50,0], Not NULL */
    public String getTenantCode() {
        return tenantCode;
    }

    /** 赋值 ==> 租户代码 [50,0], Not NULL */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode == null ? null : tenantCode.trim();
    }

    /** 取值 <== 租户名称 [50,0], Not NULL */
    public String getTenantName() {
        return tenantName;
    }

    /** 赋值 ==> 租户名称 [50,0], Not NULL */
    public void setTenantName(String tenantName) {
        this.tenantName = tenantName == null ? null : tenantName.trim();
    }

    /** 取值 <== 状态 [1,0] */
    public String getState() {
        return state;
    }

    /** 赋值 ==> 状态 [1,0] */
    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    /** 取值 <== 创建人 [20,0] */
    public String getCreateUser() {
        return createUser;
    }

    /** 赋值 ==> 创建人 [20,0] */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /** 取值 <== 修改人 [20,0] */
    public String getUpdateUser() {
        return updateUser;
    }

    /** 赋值 ==> 修改人 [20,0] */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /** 取值 <== 创建时间 [19,0] */
    public Date getCreateTime() {
        return createTime;
    }

    /** 赋值 ==> 创建时间 [19,0] */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 取值 <== 修改时间 [19,0] */
    public Date getUpdateTime() {
        return updateTime;
    }

    /** 赋值 ==> 修改时间 [19,0] */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 取值 <== 逻辑删除 [1,0], Not NULL */
    public String getIsDeleted() {
        return isDeleted;
    }

    /** 赋值 ==> 逻辑删除 [1,0], Not NULL */
    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted == null ? null : isDeleted.trim();
    }

    /** 浅克隆 */
    @Override
    public IamUser clone() {
        IamUser cloneIamUser = null;
        try {
            cloneIamUser = (IamUser) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamUser;
    }

    @Override
    public String toString() {
        return "IamUser [id = " + id + ", userType = " + userType + ", userCode = " + userCode + ", password = "
                + password + ", userName = " + userName + ", avatar = " + avatar + ", email = " + email + ", mobile = "
                + mobile + ", birthday = " + birthday + ", sex = " + sex + ", idNumber = " + idNumber + ", organId = "
                + organId + ", organName = " + organName + ", tenantCode = " + tenantCode + ", tenantName = "
                + tenantName + ", state = " + state + ", createUser = " + createUser + ", updateUser = " + updateUser
                + ", createTime = " + createTime + ", updateTime = " + updateTime + ", isDeleted = " + isDeleted + "]";
    }
}